import type { AppRouteModule } from '/@/router/types'

import { LAYOUT } from '/@/router/constant'
import { t } from '/@/hooks/web/useI18n'

const database: AppRouteModule = {
  path: '/database',
  name: 'Database',
  component: LAYOUT,
  redirect: '/database/index',
  meta: {
    icon: 'ion:cloud-outline',
    title: t('routes.dashboard.db'),
    hideChildrenInMenu: true,
    orderNo: 4,
  },
  children: [
    {
      path: 'index',
      name: 'db_index',
      component: () => import('/@/views/database/index.vue'),
      meta: {
        title: '数据库',
        hideMenu: true,
      },
    },
    /* {
      path: 'mongoDB',
      name: 'MongoDB',
      component: () => import('/@/views/database/index.vue'),
      meta: {
        title: 'MongoDB',
      },
    },
    {
      path: 'couchDB',
      name: 'CouchDB',
      component: () => import('/@/views/database/index.vue'),
      meta: {
        title: 'CouchDB',
      },
    }, */
  ],
}

export default database
